@import "./variables";

//  全局样式
* {
  margin: 0;
  padding: 0;
  list-style-type: none;
  box-sizing: border-box;
  outline: none;
}

html {
  margin: 0;
  padding: 0;
}

$iconfont:var(--iconfont,#5cd9e8);
body {
  font-family: Arial, Helvetica, sans-serif;
  // line-height: 1.2em;
  background-color: #f1f1f1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  // 图标
  .iconfont {
    font-size: 20px!important;
    color: $iconfont;
  }
}
.preview-wrap{
  background: rgba(0, 0, 0, 0.8)!important;
}
.tdt-infowindow {
  .theme-icon-item{
    width: 30px;
  }
  .loading-item{
    .loading{
      width: 35px!important;
      height: 35px!important;
    }
  }
}
.setwrap{
 
  overflow: auto;
  height: calc(100vh - 125px);
  width: calc(100vw - 130px);
}
.setwrap::-webkit-scrollbar {
  width: 6px!important;
  height: 6px!important;
  background-color: rgba(0,0,0,.2);
}

/*定义滚动条轨道
内阴影+圆角*/
.setwrap::-webkit-scrollbar-track
{
  -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);
  border-radius:10px;
  background-color:#F5F5F5;
}
/*定义滑块
内阴影+圆角*/
.setwrap::-webkit-scrollbar-thumb
{
  border-radius:10px;
  -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);
  background-color: #b3b3b3;
}
.dateDrop{
  .el-dropdown{
    display: flex;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 100px;
    font-size: 10px;
    padding: 4px 10px;
    align-items: center;
  }
}
.total{
  span{
    margin: 0 4px;
  }
}
.el-message-box__message{
  color: rgba(255, 255, 255, 0.60);
}
.btntwo{
  display: flex;
  align-items: center;
  
}
.videoinfo5{
  display: flex;
  align-items: center;
  justify-content: space-between;
  .vl{
    display: flex;
    align-items: center;
  }
  .vname{
    display: flex;
    align-items: center;
    margin-right: 10px;
  }
  .dc{
    width: 25px;
    height: 20px;
    margin-right: 5px;
  }
}
.el-tree-node__label{
  color: #fff;
}
.el-overlay-dialog,.el-overlay-message-box{
  background: rgba(3, 12, 25, 0.45);
  backdrop-filter: blur(5px);
}
.el-input__wrapper{
  box-shadow: none!important;
}
.videowrap{
  display: flex;
  align-items: center;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  .videoc{
    width: 33.1%;
    margin-right: 2%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    .fm{
      width: 100%;
      height: 100%;
      top:0;
      left: 0;
    }
    .videoinfo{
      position: absolute;
      bottom: 0;
      left: 0;
      background: rgba(0, 0, 0, 0.60);
      width: 100%;
      padding: 8px 20px;
      display: flex;
      align-items: center;
      .status{
        padding: 2px 5px;
        border-radius: 5px;
        font-size: 10px;
        margin-left: 10px;
       
      }
      .status1  {
        color: rgba(8, 204, 126, 1);
        background: rgba(8, 204, 126, .18);
      }
    }
  }
}
.panwrap{
  display: flex;
  align-items: center;
  justify-content: space-between; 
  .panelben2{
    flex: 1;
    margin-right: 20px;
   
  }
}
.commonStatus{
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  width: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.commonStatus1{
  background: rgba(8, 204, 126, 0.16);
  color: rgba(8, 204, 126, 1);
}
.commonStatus2{
  background:rgba(	220,20,60,.16);
  color: rgba(	220,20,60,1);
}
.curp{
  cursor: pointer;
}
.samlliconset{
  width: 20px;
  margin-right: 5px;
}
.tab{
  display: flex;
  align-items: center;
  margin-top: 20px;
  
  .tabchildActive{
    color: rgba(49, 154, 245, 1)!important;
    background: rgba(49, 154, 245, .16)!important;
  }
  .tabchild{
    cursor: pointer;
    padding: 4px 13px;
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.60);
    background: rgba(255, 255, 255, 0.08);
    margin-right: 20px;

  }
}
.rightpanel{
  display: flex;
  align-items: center;
  justify-content: space-between;
  .name{
    font-size: 10px;
    margin-left: 5px;
    margin-right: 30px;
  }
  .color{
    width: 13px;
    height: 7px;
    border-radius: 3px;
  }
  .rtext1{
    font-size: 20px;
    font-weight: bold;
    .small{
      color: rgba(255, 255, 255, 0.60);
      font-size: 10px;
      position: relative;
      top: -3px;
      margin: 0 20px 0 0;
    }
  }
  .rchild{
    display: flex;
    align-items: center;
  }
  .rp{
    font-weight: bold;
    font-size: 20px;
  }
  .leftp{
    font-size: 10px;
    .bignum{
      font-size: 20px;
      font-weight: bold;
      color: #fff;
      .mu{
        font-size: 10px;
        color: rgba(255, 255, 255, 0.60);
      }
    }
  }
}
.choosedate{
  display: flex;
  width: 70px;
  background: rgba(255, 255, 255, 0.08);
  color:#fff;
  border-radius: 100px;
  font-size: 10px;
  padding: 4px 10px;
  align-items: center;
  span{
    margin-right:10px
  }
}
.scrolldiv::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: rgba(0,0,0,.2);
}

/*定义滚动条轨道
内阴影+圆角*/
.scrolldiv::-webkit-scrollbar-track
{
  -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);
  border-radius:10px;
  background-color:#F5F5F5;
}
/*定义滑块
内阴影+圆角*/
.scrolldiv::-webkit-scrollbar-thumb
{
  border-radius:10px;
  -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);
  background-color: #b3b3b3;
}
.diyclassadd{
  z-index: 9999999;
}

.diyclass,.el-message-box{
    border: none;
    background: rgba(255, 255, 255, 0.08)!important;
    border-radius: 15px!important;
    color: rgba(255, 255, 255, 0.60);
    font-size: 10px;
    .el-dialog__title{
      color: #fff;
      font-size: 15px;
    }
    .el-dialog__body{
      padding-top: 0px!important;
    }
    .el-button{
      background: rgba(49, 127, 245, 1);
      color: #fff;
      border: none!important;
    }
    .el-button--primary{
      background: rgba(49, 127, 245, 0.08);
      color: rgba(49, 127, 245, 1);
    }
    .mcontent{
      .mchild{
        .label{
          margin-bottom: 5px;
          margin-top: 15px;
          color: rgba(255, 255, 255, 0.60);
        }
      }
    }
}
.abcenter{
  position: absolute;
  top: 50%;
  left: 50%;
  right: 50%;
  bottom: 50%;
  transform: translate(-50%,-50%);
}

a {
  color: #343440;
  text-decoration: none;
  box-sizing: border-box;
}

.clearfix {
  &::after {
    content: "";
    display: table;
    height: 0;
    line-height: 0;
    visibility: hidden;
    clear: both;
  }
}

//浮动
.float-r {
  float: right;
}

//浮动
.float-l {
  float: left;
}

// 字体加粗
.fw-b {
  font-weight: bold;
}

//文章一行显示，多余省略号显示
.title-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bg-color-black {
  background-color: rgba(19, 25, 47, 0.6);
}

.bg-color-blue {
  background-color: #1aabd7!important;
}

.colorBlack {
  color: #272727 !important;

  &:hover {
    color: #272727 !important;
  }
}

.colorGrass {
  color: #33cea0;

  &:hover {
    color: #33cea0 !important;
  }
}

.colorRed {
  color: #ff5722;

  &:hover {
    color: #ff5722 !important;
  }
}

.colorText {
  color: #d3d6dd !important;

  &:hover {
    color: #d3d6dd !important;
  }
}

.colorBlue {
  color: #257dff !important;

  &:hover {
    color: #257dff !important;
  }
}

//颜色
@each $colorkey, $color in $colors {
  .text-#{$colorkey} {
    color: $color !important;
  }

  .bg-#{$colorkey} {
    background-color: $color;
  }
}

//背景颜色
@each $colorkey, $color in $background-color {
  .bg-color-#{$colorkey} {
    background-color: $color;
  }
}

//边框颜色
@each $colorkey, $color in $border-color {
  .bd-color-#{$colorkey} {
    border: 1px solid $color;
  }
}

//对齐
@each $var in (left, center, right) {
  .text-#{$var} {
    text-align: $var !important;
  }
}

//flex
@each $key, $value in $flex-jc {
  .jc-#{$key} {
    justify-content: $value;
  }
}

@each $key, $value in $flex-ai {
  .ai-#{$key} {
    align-items: $value;
  }
}

//字体
@each $fontkey, $fontvalue in $font-sizes {
  .fs-#{$fontkey} {
    font-size: $fontvalue * $base-font-size;
  }
}

//.mt-1 => margin top
//spacing

@each $typekey, $type in $spacing-types {
  //.m-1
  @each $sizekey, $size in $spacing-sizes {
    .#{$typekey}-#{$sizekey} {
      #{$type}: $size * $spacing-base-size;
    }
  }

  //.mx-1
  @each $sizekey, $size in $spacing-sizes {
    .#{$typekey}x-#{$sizekey} {
      #{$type}-left: $size * $spacing-base-size;
      #{$type}-right: $size * $spacing-base-size;
    }

    .#{$typekey}y-#{$sizekey} {
      #{$type}-top: $size * $spacing-base-size;
      #{$type}-bottom: $size * $spacing-base-size;
    }
  }

  //.mt-1
  @each $directionkey, $direction in $spacing-directions {
    @each $sizekey, $size in $spacing-sizes {
      .#{$typekey}#{$directionkey}-#{$sizekey} {
        #{$type}-#{$direction}: $size * $spacing-base-size;
      }
    }
  }

  .#{$typekey} {
    #{$type}: 0;
  }
}
